package com.chance.cc.crawler.prod.command.script.news.flightclub;

import com.chance.cc.crawler.core.downloader.HttpPage;
import com.chance.cc.crawler.development.command.script.ScriptCommand;
import com.chance.cc.crawler.prod.command.job.domain.news.flightclub.FlightclubArticleCrawlerScheduleJob;


/**
 * @author 汽车之家车系口碑
 * @date 2020/12/7 0007 10:54
 */
public class FlightclubCrawlerScript {

    private static ScriptCommand scriptCommand = new ScriptCommand("192.168.1.217",9599);

    public static void publishCarSeriesPraiseCrawlerNodeScript(){
        HttpPage page = scriptCommand.publishCrawlerScript2Consul(FlightclubArticleCrawlerScheduleJob.domain);
        System.out.println("发布采集脚本：" + page.getRawText());
    }

    public static void main(String[] args) {
        publishCarSeriesPraiseCrawlerNodeScript();
    }
}
